<!--
模板说明：
-->
#macro(orderPic $type)
#if ($orderField.equals($type)) 
<img src="/images/system/ico/${orderType}.gif">  
#end
#end
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<link href="/include/css/css.css" rel="stylesheet" type="text/css">
<title>信息管理页面</title>
<script language="JavaScript" src="/include/js/forbidNew.js" type="text/JavaScript"></script>
<script language="JavaScript">
function selectAll(obj,value)
{
if(obj.length==undefined)
{
obj.checked=value;
}
for(var i=0;i<obj.length;i++)
obj[i].checked=value;
}
function doEdit()
{
var id=ListForm.cid.value;
if(id=="")
{
alert("请选择要编辑的数据！");
return false;
}
ListForm.parameter.value="edit";
ListForm.submit();
}
function doShow()
{
var id=ListForm.cid.value;
if(id=="")
{
alert("请选择要查看的数据！");
return false;
}
window.open("/review.do?parameter=show&cid="+id,"","")
}
function doAdd()
{
ListForm.parameter.value="new";
ListForm.cid.value="";
ListForm.submit();
}
function doCheck()
{
}
function doPublish()
{
var ids="";
var obj=ListForm.cids;
for(var i=0;i<obj.length;i++)
if(obj[i].checked)ids+=obj[i].value+",";
if(ids=="")ids=ListForm.cid.value+",";
ListForm.mulitCid.value=ids;
if(ids==",")
{
alert("请选择要发布的内容！");
return false;
}
}
function selectRow(id)
{
ListForm.cid.value=id;
}
function doDel()
{
var ids="";
var obj=ListForm.cids;
for(var i=0;i<obj.length;i++)
if(obj[i].checked)ids+=obj[i].value+",";
if(ids=="")ids=ListForm.cid.value+",";
ListForm.mulitCid.value=ids;
if(ids==",")
{
alert("请选择要删除的内容！");
return false;
}
if(confirm("文章删除后不能恢复，请问要执行删除操作吗？"))
{
ListForm.parameter.value="del";
ListForm.submit();
}
}
function gotoPage(n)
{
	ListForm.page.value=n;
	ListForm.submit();
}
function doSort(fld)
{
	
	if(ListForm.orderType.value=='asc')
			ListForm.orderType.value='desc';
		else
			ListForm.orderType.value='asc';	

	ListForm.orderField.value=fld;
	ListForm.method="post";
	ListForm.parameter.value="query";
    ListForm.submit();
}
function doSearch()
{
ListForm.parameter.value="query";
ListForm.submit();
}
</script>
</head>

<body bgcolor="#EBF0F4" leftmargin="0" rightmargin="6" topmargin="0" bottommargin="1" scroll="no" onselectstart="return false;">
<table width="100%" height="100%"  border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF" class="Border">
  <tr>
    <td height="38" align="center" valign="bottom"><table width="96%" height="34"  border="0" cellpadding="0" cellspacing="0">
      <tr>
        <td valign="middle"><table width="53%"  border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td width="10%" valign="bottom"><img src="/images/system/File_13.jpg" width="32" height="32"></td>
                <td width="90%" class="titletxt">博客评论管理-$!tagName</td>
          </tr>
        </table></td>
        <td width="100">&nbsp;</td>
        <td width="120">&nbsp;</td>
      </tr>
    </table></td>
  </tr>
  <tr>
    <td align="center" valign="top">
	<div style="height:100%;overflow:auto;">
	<form id="ListForm" name="ListForm"  method="post" action="blogReview.do">		
	   <input type="hidden" name="parameter" value="">	     
	   <input type="hidden" name="subCommand" value="">
	   <input type="hidden" name="cid"   value="$!cid">
	   <input type="hidden" name="mulitCid"   value="$!mulitCid">
       <input type="hidden" name="page"   value="$!page">
       <input name="orderField" type="hidden" value="$!orderField">
      <input name="orderType" type="hidden" value="$!orderType">	  
	      <table width="96%"  border="1" cellpadding="4" cellspacing="0" bordercolor="#30524D" bgcolor="CBD9D9" class="BorderLine" style="border-collapse: collapse" >
            <thead>
			 <tr valign="middle"> 
                <td height="24" colspan="8" align="center" background="/images/system/index_18.gif" class="title1">
				<table width="100%"  border="0">
                  <tr>
                    <td>评论对象：
                      <input name="queryParent" type="text" size="15" value="$!queryParnet"></td>
                  <td>标题：
                    <input name="queryTitle" type="text" size="8" value="$!queryTitle"></td>
                    <td> 评论人：
                      <input name="queryInputUser" type="text" size="8" value="$!queryInputUser"></td>
                    <td><input type="submit" name="Submit4" value="查询" onClick="doSearch();"></td>
                  </tr>
                </table></td>
              </tr>
              <tr valign="middle"> 
                <td width="20" height="24" align="center" background="../images/system/index_18.gif" class="title1"  style="cursor: hand;"><input type="checkbox"  onclick="selectAll(cids,this.checked);"></td>
                <td width="75" align="center"  style="cursor: hand;" onClick="doSort('parent')" class="title1">评论对象#orderPic("parent")</td>
                <td width="50" align="center" style="cursor: hand;" onClick="doSort('inputuser')"  class="title1">评论人#orderPic("inputuser")</td>
                <td width="50" align="center" style="cursor: hand;" onClick="doSort('inputuser')"  class="title1">内容</td>
                <td width="100" align="center" nowrap style="cursor: hand;" onClick="doSort('email')"  class="title1">电子邮箱#orderPic("email")</td>
                <td width="80" align="center" nowrap style="cursor: hand;" onClick="doSort('tel')"  class="title1">电话#orderPic("tel")</td>
                <td width="100" align="center" nowrap style="cursor: hand;" onClick="doSort('inputtime')" class="title1">注册日期#orderPic("inputtime")</td>
                <td width="83" align="center" nowrap  class="title1">IP</td>
              </tr>
            </thead>
            #foreach( $info in $list) 
            <tr bgcolor="#F8FCF8"  class="coolselect" style="cursor:default " id='$!info.cid'   onmouseover="this.className='MouseOver';" onMouseOut="this.className='MouseOut'" onDblClick="selectRow(this.id);doEdit();" onClick="selectRow(this.id);"> 
              <td height="23" title="111"><input type="checkbox" name="cids" value="$!info.cid"></td>
              <td height="23" title="111">$!info.parent</td>
              <td height="23" title="111">$!info.inputuser</td>
              <td height="23" title="111">$!info.content</td>
              <td align="center" nowrap>$!info.email</td>
              <td align="center" nowrap>$!info.tel</td>
              <td align="center" nowrap>$!info.inputtime</td>
              <td align="center" nowrap>$!info.ip</td>
            </tr>
            #end 
          </table>  
	    </form>
	  </div>
	  
	  </td>
  </tr>
  <tr><td align="center" height="25">
   <table width="92%" height="24"  border="0" cellpadding="0" cellspacing="0">
        <tr valign="bottom">
          <td nowrap>第<strong>$!page</strong>页 共<strong>$!pages</strong>页<span class="txt1">[共<b>$!rows</b>条记录]</span> 　　分页：$!gotoPageHTML　</td>
        </tr>
      </table>
  </td></tr>
  <tr>
    <td height="40" align="left" valign="middle"><table height="30"  border="0" cellpadding="0" cellspacing="0">
        <tr> 
          <td width="50" align="left" valign="middle">&nbsp;</td>
          <td width="50" align="left" valign="middle"><input type="submit" name="Submit" value="添加" onClick="doAdd();"> 
          </td>
          <td width="50" align="left" valign="middle"><input type="submit" name="Submit2" value="修改" onClick="doEdit();"></td>
          <td width="50" valign="middle"><input type="submit" name="Submit323" value="查看" onClick="doShow();"></td>
          <td width="50" valign="middle"><input type="submit" name="Submit322" value="删除" onClick="doDel();"></td>
          <td valign="middle">&nbsp;</td>
        </tr>
      </table></td>       
  </tr>
</table>
</body>
</html>
#if ($msg)
<script>
alert('$!msg');</script>
#end
